<?php


namespace App\Http\Controllers;


use App\Models\Category;
use App\Models\Filter;

class DianshangController extends Controller
{
    public function dianshangcase()
    {
        $catelist = Category::getCateListBy('dianshangcase');
       ////Filter::resourceLink('https://www.szweb.cn/dianshangcase');
        Filter::cutStr(
            'https://www.szweb.cn/dianshangcase',
            '<div class="elec-solution-wrapper">',
            '<div class="full-related-news">',
            'dianshangcase/dianshangcase'
        );
        $cate = Category::getCateByTargetName("dianshangcase");
        return view("dianshangcase.dianshangcase",compact("cate", "catelist"));
    }


    public function dianshang()
    {
        $catelist = Category::getCateListBy('dianshangcase');
        //Filter::resourceLink('https://www.szweb.cn/dianshang');
        Filter::cutStr(
            'https://www.szweb.cn/dianshang',
            '<div class="full-site-article">',
            '<div class="full-related-news">',
            'dianshangcase/dianshang'
        );
        $cate = Category::getCateByTargetName("dianshangcase");
        return view("dianshangcase.dianshang",compact("cate", "catelist"));
    }


    public function yidongdianshang()
    {
        $catelist = Category::getCateListBy('dianshangcase');
        //Filter::resourceLink('https://www.szweb.cn/yidongdianshang');
        Filter::cutStr(
            'https://www.szweb.cn/yidongdianshang',
            '<div class="full-site-article">',
            '<div class="full-related-news">',
            'dianshangcase/yidongdianshang'
        );
        $cate = Category::getCateByTargetName("yidongdianshang");
        return view("dianshangcase.yidongdianshang",compact("cate", "catelist"));
    }


    public function weixindiansh()
    {
        $catelist = Category::getCateListBy('dianshangcase');
        //Filter::resourceLink('https://www.szweb.cn/weixindiansh');
        Filter::cutStr(
            'https://www.szweb.cn/weixindiansh',
            '<div class="full-site-article">',
            '<div class="full-related-news">',
            'dianshangcase/weixindiansh'
        );
        $cate = Category::getCateByTargetName("weixindiansh");
        return view("dianshangcase.weixindiansh",compact("cate", "catelist"));
    }


    public function xitongkaifa()
    {
        $catelist = Category::getCateListBy('dianshangcase');
        //Filter::resourceLink('https://www.szweb.cn/xitongkaifa');
        Filter::cutStr(
            'https://www.szweb.cn/xitongkaifa',
            '<div class="full-site-article">',
            '<div class="full-related-news">',
            'dianshangcase/xitongkaifa'
        );
        $cate = Category::getCateByTargetName("xitongkaifa");
        return view("dianshangcase.xitongkaifa",compact("cate", "catelist"));
    }


    public function p2p()
    {
        $catelist = Category::getCateListBy('dianshangcase');
        //Filter::resourceLink('https://www.szweb.cn/p2p');
        Filter::cutStr(
            'https://www.szweb.cn/p2p',
            '<div class="full-site-article">',
            '<div class="full-related-news">',
            'dianshangcase/p2p'
        );
        $cate = Category::getCateByTargetName("p2p");
        return view("dianshangcase.p2p",compact("cate", "catelist"));
    }


    public function zhongchou()
    {
        $catelist = Category::getCateListBy('dianshangcase');
        //Filter::resourceLink('https://www.szweb.cn/zhongchou');
        Filter::cutStr(
            'https://www.szweb.cn/zhongchou',
            '<div class="full-site-article">',
            '<div class="full-related-news">',
            'dianshangcase/zhongchou'
        );
        $cate = Category::getCateByTargetName("zhongchou");
        return view("dianshangcase.zhongchou",compact("cate", "catelist"));
    }


    public function guquan()
    {
        $catelist = Category::getCateListBy('dianshangcase');
        //Filter::resourceLink('https://www.szweb.cn/guquan');
        Filter::cutStr(
            'https://www.szweb.cn/guquan',
            '<div class="full-site-article">',
            '<div class="full-related-news">',
            'dianshangcase/guquan'
        );
        $cate = Category::getCateByTargetName("guquan");
        return view("dianshangcase.guquan",compact("cate", "catelist"));
    }
}